﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OpenReleasePackager
{
    class Program
    {
        static void Main(string[] args)
        {
            //Get arguments
            if (args.Length > 0)
            {
                //Encrypt the package.
                DarthEncrypt dc = new DarthEncrypt();
                dc.PassPhrase = "AE47FAB9E3D390C4E7B2F1";
                byte[] f = dc.EncryptBytes(System.IO.File.ReadAllBytes(args[0]));
                System.IO.File.WriteAllBytes(args[0].Substring(0, args[0].Length - 3) + "olpk", f);
            }
        }
    }
}
